﻿using Library.Common.Model;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;

namespace SMS.HangFireApi.Areas.Common.Controllers
{
    /// <summary>
    /// 系统通用服务
    /// </summary>
    [AllowAnonymous]
    public class SysCommonController : CommonBaseController
    {

        /// <summary>
        /// 获取系统时间
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public BaseApiResult<string> GetDateTime()
        {
            var result = new BaseApiResult<string>();
            result.Data= DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            return result;
        }
    }
}
